package com.lh.java.basic.datatype;

public class TestString {	
	public static void main(String[] args) {
		String s1 = "bcdef";
		System.out.println(s1.contains("adef"));
		System.out.println(s1.contentEquals("bcdef"));
		String s2="abc";
		String s3="abc";
		System.out.println(s2==s3);
		StringBuffer sb =  new StringBuffer(5);
		Object cObject=null;
		sb.append(cObject);
		System.out.println(sb.toString());
		System.out.println(sb.capacity());
		sb.ensureCapacity(6);
		System.out.println(sb.capacity());
		
	}

}
